﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020009CF RID: 2511
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class KeywordUnlockValue : IMessage<KeywordUnlockValue>, IMessage, IEquatable<KeywordUnlockValue>, IDeepCloneable<KeywordUnlockValue>, IBufferMessage
	{
		// Token: 0x17001FC4 RID: 8132
		// (get) Token: 0x06007095 RID: 28821 RVA: 0x0012D5AC File Offset: 0x0012B7AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<KeywordUnlockValue> Parser
		{
			get
			{
				return KeywordUnlockValue._parser;
			}
		}

		// Token: 0x17001FC5 RID: 8133
		// (get) Token: 0x06007096 RID: 28822 RVA: 0x0012D5B3 File Offset: 0x0012B7B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return KeywordUnlockValueReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001FC6 RID: 8134
		// (get) Token: 0x06007097 RID: 28823 RVA: 0x0012D5C5 File Offset: 0x0012B7C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return KeywordUnlockValue.Descriptor;
			}
		}

		// Token: 0x06007098 RID: 28824 RVA: 0x0012D5CC File Offset: 0x0012B7CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KeywordUnlockValue()
		{
		}

		// Token: 0x06007099 RID: 28825 RVA: 0x0012D5DF File Offset: 0x0012B7DF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KeywordUnlockValue(KeywordUnlockValue other) : this()
		{
			this.keywordUnlockMap_ = other.keywordUnlockMap_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600709A RID: 28826 RVA: 0x0012D609 File Offset: 0x0012B809
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public KeywordUnlockValue Clone()
		{
			return new KeywordUnlockValue(this);
		}

		// Token: 0x17001FC7 RID: 8135
		// (get) Token: 0x0600709B RID: 28827 RVA: 0x0012D611 File Offset: 0x0012B811
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MapField<uint, bool> KeywordUnlockMap
		{
			get
			{
				return this.keywordUnlockMap_;
			}
		}

		// Token: 0x0600709C RID: 28828 RVA: 0x0012D619 File Offset: 0x0012B819
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as KeywordUnlockValue);
		}

		// Token: 0x0600709D RID: 28829 RVA: 0x0012D627 File Offset: 0x0012B827
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(KeywordUnlockValue other)
		{
			return other != null && (other == this || (this.KeywordUnlockMap.Equals(other.KeywordUnlockMap) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600709E RID: 28830 RVA: 0x0012D65C File Offset: 0x0012B85C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.KeywordUnlockMap.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600709F RID: 28831 RVA: 0x0012D690 File Offset: 0x0012B890
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060070A0 RID: 28832 RVA: 0x0012D698 File Offset: 0x0012B898
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060070A1 RID: 28833 RVA: 0x0012D6A1 File Offset: 0x0012B8A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.keywordUnlockMap_.WriteTo(ref output, KeywordUnlockValue._map_keywordUnlockMap_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060070A2 RID: 28834 RVA: 0x0012D6C8 File Offset: 0x0012B8C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.keywordUnlockMap_.CalculateSize(KeywordUnlockValue._map_keywordUnlockMap_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060070A3 RID: 28835 RVA: 0x0012D701 File Offset: 0x0012B901
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(KeywordUnlockValue other)
		{
			if (other == null)
			{
				return;
			}
			this.keywordUnlockMap_.MergeFrom(other.keywordUnlockMap_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060070A4 RID: 28836 RVA: 0x0012D72F File Offset: 0x0012B92F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060070A5 RID: 28837 RVA: 0x0012D738 File Offset: 0x0012B938
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.keywordUnlockMap_.AddEntriesFrom(ref input, KeywordUnlockValue._map_keywordUnlockMap_codec);
				}
			}
		}

		// Token: 0x04002AF0 RID: 10992
		private static readonly MessageParser<KeywordUnlockValue> _parser = new MessageParser<KeywordUnlockValue>(() => new KeywordUnlockValue());

		// Token: 0x04002AF1 RID: 10993
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002AF2 RID: 10994
		public const int KeywordUnlockMapFieldNumber = 12;

		// Token: 0x04002AF3 RID: 10995
		private static readonly MapField<uint, bool>.Codec _map_keywordUnlockMap_codec = new MapField<uint, bool>.Codec(FieldCodec.ForUInt32(8U, 0U), FieldCodec.ForBool(16U, false), 98U);

		// Token: 0x04002AF4 RID: 10996
		private readonly MapField<uint, bool> keywordUnlockMap_ = new MapField<uint, bool>();
	}
}
